Current File : //usr/lib/python3/dist-packages/twisted/python/test/__pycache__/test_appdirs.cpython-312.pyc |
�
Ϫ�f3 � �f � d Z ddlmZ ddlmZ G d� dej � Zy# e$ r dZY �%w xY w)z'
Tests for the data directory support.
� )�_appdirsN)�unittestc �( � e Zd ZdZesdZdd�Zdd�Zy)�AppdirsTestsz
Tests for L{_appdirs}.
zappdirs package not installedNc �l � t j � }| j |j d� � y)z�
Calling L{appdirs.getDataDirectory} will return a user data directory
in the system convention, with the module of the caller as the
subdirectory.
z twisted.python.test.test_appdirsN�r �getDataDirectory�
assertTrue�endswith��self�ress �B/usr/lib/python3/dist-packages/twisted/python/test/test_appdirs.py�test_moduleNamezAppdirsTests.test_moduleName s( � � �'�'�)��������%G�H�I� c �n � t j d� }| j |j d� � y)z�
Calling L{appdirs.getDataDirectory} with a C{moduleName} argument will
make a data directory with that name instead.
zfoo.bar.bazNr r s r �test_manualzAppdirsTests.test_manual"